﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core.Lister;
using COFE.Core.Profile;
using COFE.Core;
using NUnit.Framework;
using COFE.Core.Utils;
using System.Diagnostics;
using COFE.Core.Entry;

namespace COFE.Data.Lister
{
    public class DBSecondaryDirectoryLister : DBDirectoryListerBase, ISecondaryDirectoryLister
    {
        #region Constructor

        public DBSecondaryDirectoryLister(ISecondaryDirectoryLister cachingDirectoryLister)
            : base(cachingDirectoryLister)
        {
            
        }

        #endregion

        #region Methods

        public IPropertyProvider ConvertEntry(IPropertyProvider item, EntryConstructionFlags flags)
        {
            return CachingDirectoryLister.ConvertEntry(item, flags);
        }

        public IEnumerable<IInternalFileSystemInfoExA> AppendEntries(IInternalDirectoryInfoExA parent)
        {
            return CachingDirectoryLister.AppendEntries(parent);
        }

        public IInternalDirectoryInfoExA CreateVirtualDirectory(IInternalDirectoryInfoExA parent, string dirName, string type)
        {
            return CachingDirectoryLister.CreateVirtualDirectory(parent, dirName, type);
        }
    

        #endregion

        #region Data
        

        #endregion

        #region Public Properties

        public ISecondaryDirectoryLister CachingDirectoryLister { get { return base._cachingDirectoryLister as ISecondaryDirectoryLister; } }

        public string[] ConvertableFileNamePatterns { get { return CachingDirectoryLister.ConvertableFileNamePatterns; } }
        
        
        #endregion





        
    }
}
